#include <iostream>
using namespace std;

int main()
{
    // 局部变量声明
    char var = 'D';
    // int cnt = 0; // 定义变量

    switch (var)
    {
    case 'A':
        int cnt = 0; // 定义变量 error
        cout << "Excellent." << endl
             << cnt;
        break;
    case 'B':
    case 'C':
        ++cnt;
        cout << "Good." << endl
             << cnt;
        break;
    case 'D':
        cout << "Not bad." << endl
             << cnt;
        break;
    case 'F':
        cout << "Bad." << endl
             << cnt;
        break;
    default:
        cout << "Bad." << endl
             << cnt;
    }

    return 0;
}